import check from '@dfeidao/atom-nodejs/authorization/check-isonline';
import { IFeidaoAiNodejsPage } from '@dfeidao/atom-nodejs/interfaces';
import redirect from '@dfeidao/atom-nodejs/server/redirect';
export default async function na001(fd: IFeidaoAiNodejsPage) {
	try {
		const url = await check(fd, './login.html');
		if (url.redirect) {
			return redirect(url.redirect);
		}
	} catch (error) {
		return redirect('./login.html');
	}
}
